//
//  UILabel+XQAddition.m
//  YunDa
//
//  Created by XQ on 2017/12/1.
//  Copyright © 2017年 XQ. All rights reserved.
//

#import "UILabel+XQAddition.h"

@implementation UILabel (XQAddition)
+ (instancetype)xq_labelWithText:(NSString *)text fontSize:(CGFloat)fontSize color:(UIColor *)color {
    UILabel *label = [[self alloc] init];
    
    label.text = text;
    label.font = [UIFont systemFontOfSize:fontSize];
    label.textColor = color;
    label.numberOfLines = 0;
    
    [label sizeToFit];
    
    return label;
}
@end
